package com.wyj.chat.websocket_chat.service.impl;

import com.wyj.chat.websocket_chat.dao.InformationMapper;
import com.wyj.chat.websocket_chat.pojo.Information;
import com.wyj.chat.websocket_chat.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * Created by wyj on 2018/4/11
 */
@Service
@Transactional
public class InformationServiceImpl implements InformationService{

    @Autowired
    private InformationMapper informationMapper;

    public Information getById(String id) {
        return informationMapper.getById(id);
    }

    public int insertInformation(Information information) {
        return informationMapper.insertInformation(information);
    }

    public int updateInformation(Information information) {
        return informationMapper.updateInformation(information);
    }

}
